#pragma once

#include "Render/VertexArray.h"
#include "World/BlockModel.h"

class CubeMesh {
public:
  CubeMesh();
  CubeMesh(const Ref<BlockModel> &model);

  void Render(int32_t type = GL_TRIANGLES) const;

  const Ref<BlockModel> &GetBlockModel() const { return m_blockModel; }

private:
  Ref<VertexArray> m_cubeVertexArray{nullptr};
  Ref<BlockModel> m_blockModel{nullptr};
};
